function submit(){
    var data=$('#ff').serializeArray(); 

    var par={};
    data.map(function(one){
        par[one.name]=one.value;
    }); 
    //后台申请
    $.get('/users/logins',par,function (data) {
        if(data.code==0){
            $.messager.alert("提示","登陆成功",'',function(){
                location.href="main.html"
            });
            
        }
        else{
            $.messager.alert("提示","用户名或密码错误");
        }
    })

}